<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- <input type="text" id="inputId" value="Hello JS" /> -->
		<div></div>
		<div></div>
		
		<script type="text/javascript">
			var divs = document.getElementsByTagName('div');
			var divObj1 = document.getElementsByTagName('div')[0];
			divObj1.innerHTML = '<span style="color:red;">innerHtml</span>';
			var divObj2 = document.getElementsByTagName('div')[1];
			divObj2.innerText = '<span style="color:red;">innerText</span>';
		</script>
	</body>
</html>
